Visit the Website of
ABS Pecplan
 

LIBRARY

 

$max_filesize) die('The file you attempted to upload is too large.'); // Check if we can upload to the specified path, if not DIE and inform the user. if(!is_writable($upload_path)) die('You cannot upload to the specified directory, please CHMOD it to 777.'); // Upload the file to your specified path. if (move_uploaded_file($_FILES['file']['tmp_name'], $upload_path.$filename)) { echo 'Your file upload was successful, view the file here'; // It worked. } else { echo 'There was an error during the file upload. Please try again.'; // It failed :(. } } $c_library->admin_newfile($parameters_newfile); } else { // EDIT AREAS for ($i_areacheckbox=0; $i_areacheckbox<=20; $i_areacheckbox++) { if ($_POST['newarea'.$i_areacheckbox]) { $areatotal .= '-'.$_POST['newarea'.$i_areacheckbox].'-'; } } $parameters_savechanges['id'] = $_POST['idlib']; $parameters_savechanges['area'] = $areatotal; $c_library->admin_savechanges($parameters_savechanges); $idlib = $_POST['idlib']; $idlib_delete = 'delete'.$idlib; if ($_POST[$idlib_delete] == 1) { $c_library->admin_delete($idlib); } } echo 'Saved

'; } ?>
search($parameters); //print_r($library); $languages[1] = 'Português'; $languages[2] = 'Espanhol'; $languages[3] = 'Inglês'; $parameters['options']['config']['width'] = '100%'; $library_count = count($library); $areas = $c_library->areas(false, 0); //print_r($areas); for ($a=0; $a<$library_count; $a++) { echo ''; $len_description = strlen($library[$c]['description']); if ($len_description > 150) { $library[$c]['description'] = substr($library[$a]['description'], 0, 150).' (...)'; } //if ($library[$a]['kind'] == 1) { $if_pdf = ' Download PDF'; } //else { $if_pdf = '-'; } if ($library[$a]['kind'] == 1) { $if_open = 'http://docs.google.com/viewer?url=http://'.$_SERVER['SERVER_NAME'].'/upload/library/'.$library[$a]['file']; } else if ($library[$a]['kind'] == 2) { $if_open = $library[$a]['url']; } else if ($library[$a]['kind'] == 3) { $if_open = 'http://'.$_SERVER['SERVER_NAME'].'/?pages=library_embed&id='.$library[$c]['id']; } else if ($library[$a]['kind'] == 4) { $if_open = '/upload/library/'.$library[$a]['file']; } // Lines $lang = $library[$c]['idioma']; echo $flag = '

'; echo $title = ''.$library[$a]['title'].' '; echo $author = ''.$library[$a]['author'].' '.$library[$c]['author_description'].''; if ($library[$a]['kind'] == 2){ //echo $view = '
'; if ($library[$a]['url2']) { echo $view = '    
'.variable(901).': '; } if ($library[$a]['url3']) { echo $view = ' '; } } else { echo $view = '
DOWNLOAD PDF '; //echo $view = ''.variable(916).''; } $parameters['options']['content'][2][$a] = $if_pdf; if ($user_info['admin_library']) { echo '
'; echo '
'; unset($i_areas); for ($i_areas=0; $i_areas '.variable($areas[$i_areas]['variable']).''; } echo ''; echo ''; echo '
'; } } ?>


'; } ?>

0){ }else{ echo variable(594); } ?>
OUR VALUES

Customer-centric • Results-driven • Pioneering • People-focused • Responsible
   
Facebook